<h1><%= title "Duchy of #{@duchy.name}" %></h1>
<p>
  <b>Kingdom:</b>
  <%= link_to_record @duchy.kingdom %>
</p>

<p>
  <b>Flag:</b>
  <%=h @duchy.flag %>
</p>

<p>
  <b>Ruler:</b>
  <%=link_to_record Title.duke_of @duchy %>
</p>

<div id="counties">
	<h2>Counties</h2>
	<ul>
	<%= list_records (@duchy.counties)%>
	</ul>
</div>
<div id="courtiers">
	<%= render :partial => '/shared/courtiers', :locals => {:territory => @duchy} %>
</div>
<%= render :partial => '/shared/court_actions', :locals => {:territory => @duchy} %>

<% if is_admin? %>
<%= link_to 'Edit', edit_duchy_path(@duchy) %> |
<%= link_to 'Back', duchies_path %> |
<% end %>

<%= link_to 'Home', '/' %>
